.class Lcom/example/m6wmr/ReportShop$2;
.super Ljava/lang/Object;
.source "ReportShop.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ReportShop;->getResource()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ReportShop;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ReportShop;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    .line 199
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 13

    .prologue
    .line 205
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;
    invoke-static {v11}, Lcom/example/m6wmr/ReportShop;->access$5(Lcom/example/m6wmr/ReportShop;)Lmyapp/MyApp;

    move-result-object v11

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, "/index.php?ctrl=app&action=shopreport&shopid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    iget-object v11, v11, Lcom/example/m6wmr/ReportShop;->shopid:Ljava/lang/String;

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&datatype=json"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 207
    .local v9, "url":Ljava/lang/String;
    iget-object v10, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/m6wmr/ReportShop;->access$5(Lcom/example/m6wmr/ReportShop;)Lmyapp/MyApp;

    move-result-object v10

    invoke-static {v9, v10}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v8

    .line 209
    .local v8, "str":Ljava/lang/String;
    const-string v10, "jie--==url ==="

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v12, "|||"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 212
    :try_start_0
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 214
    .local v6, "jsonsJsonObject":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    .line 217
    .local v4, "json":Lorg/json/JSONObject;
    const-string v10, "error"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "true"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 257
    .end local v4    # "json":Lorg/json/JSONObject;
    .end local v6    # "jsonsJsonObject":Lorg/json/JSONObject;
    :cond_0
    :goto_0
    return-void

    .line 222
    .restart local v4    # "json":Lorg/json/JSONObject;
    .restart local v6    # "jsonsJsonObject":Lorg/json/JSONObject;
    :cond_1
    const-string v10, "msg"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_0

    .line 228
    const-string v10, "typelist"

    invoke-virtual {v4, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 230
    .local v3, "jArray":Lorg/json/JSONArray;
    const-string v10, "jie--====="

    invoke-virtual {v3}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 232
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-lt v2, v10, :cond_2

    .line 244
    new-instance v7, Landroid/os/Message;

    invoke-direct {v7}, Landroid/os/Message;-><init>()V

    .line 246
    .local v7, "message":Landroid/os/Message;
    const/4 v10, 0x1

    iput v10, v7, Landroid/os/Message;->arg1:I

    .line 248
    iget-object v10, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->handler:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6wmr/ReportShop;->access$6(Lcom/example/m6wmr/ReportShop;)Landroid/os/Handler;

    move-result-object v10

    invoke-virtual {v10, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 251
    .end local v2    # "i":I
    .end local v3    # "jArray":Lorg/json/JSONArray;
    .end local v4    # "json":Lorg/json/JSONObject;
    .end local v6    # "jsonsJsonObject":Lorg/json/JSONObject;
    .end local v7    # "message":Landroid/os/Message;
    :catch_0
    move-exception v1

    .line 253
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 234
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "i":I
    .restart local v3    # "jArray":Lorg/json/JSONArray;
    .restart local v4    # "json":Lorg/json/JSONObject;
    .restart local v6    # "jsonsJsonObject":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    .line 236
    .local v5, "jsonObject":Lorg/json/JSONObject;
    new-instance v0, Lbean/ReportBean;

    invoke-direct {v0}, Lbean/ReportBean;-><init>()V

    .line 238
    .local v0, "bean":Lbean/ReportBean;
    const-string v10, "name"

    invoke-virtual {v5, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lbean/ReportBean;->setReportMessage(Ljava/lang/String;)V

    .line 240
    iget-object v10, p0, Lcom/example/m6wmr/ReportShop$2;->this$0:Lcom/example/m6wmr/ReportShop;

    # getter for: Lcom/example/m6wmr/ReportShop;->reportBeans:Ljava/util/List;
    invoke-static {v10}, Lcom/example/m6wmr/ReportShop;->access$2(Lcom/example/m6wmr/ReportShop;)Ljava/util/List;

    move-result-object v10

    invoke-interface {v10, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 232
    add-int/lit8 v2, v2, 0x1

    goto :goto_1
.end method
